package com.springweb;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.springweb.service.AdminService;

@Controller
@RequestMapping("/admin")
public class AdminController {
	
	@Autowired
	AdminService adminService;
	
	
	
@RequestMapping(value="welcomeAdmin")
 public ModelAndView getWelcomeAdminPage(){
	ModelAndView mav=new ModelAndView("admin/welcome");
	// WEB-INF/jsp/admin/welcome.jsp
	   adminService.handleSubmition();
	 
	 
	return mav;
}
	
}
